import 'package:flutter/material.dart';
class Indicator extends StatelessWidget {
  final IconData iconData;
  final double value;
  final String unit;
  final String format;

  const Indicator({Key key,@required this.iconData, this.value, this.unit, this.format}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        Icon(iconData,size: 40,color: Colors.blue[600],),
        SizedBox(height: 10,),
        Row(
          children: <Widget>[
            Text(value.toString(),style: TextStyle(fontSize: 18,fontWeight:FontWeight.w800),),
            Text(unit,style: TextStyle(fontSize: 15,fontWeight:FontWeight.w300))
          ],
        )
      ],
    );
  }
}
